<?xml version="1.0"?>
<jsp:root 	xmlns:jsp="http://java.sun.com/JSP/Page"
			xmlns:c="http://java.sun.com/jsp/jstl/core"
			xmlns:fn="http://java.sun.com/jsp/jstl/functions"
			version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	<jsp:output omit-xml-declaration="false"
		doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.1//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd" />
	<jsp:directive.page import="es.albarregas.pojo.Pedido" />
	<jsp:directive.page import="es.albarregas.pojo.LineaPedido" />
	<jsp:directive.page import="es.albarregas.modelo.ModelFacade"/>
	
	<c:if test="${param.accion=='eliminar'}">
		<jsp:scriptlet>
			String codigo=request.getParameter("codigo");	
			ModelFacade.eliminarCategoria(codigo);
			
			</jsp:scriptlet>		
			<c:redirect url="VisListarCategoriasAdmin.jsp"></c:redirect>
	</c:if>
	<c:if test="${param.accion=='editar'}">
		<jsp:forward page="ForEditarCategoriasAdmin.jsp">
			
		</jsp:forward>		
	</c:if>
	
			
		
	
</jsp:root>